<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('activity/activityedit/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('ID') ?>', name: 'id', width: 80, iskey: true , hide:true, },                       
                        {display: '<?= translate('ACTIVITY_ACTIVITYTIME_ACTIVITYID') ?>', name: 'activityId', width: 80},
                        {display: '<?= translate('ACTIVITY_ACTIVITYTIME_NAME') ?>', name: 'name', width: 80},
                        {display: '<?= translate('ACTIVITY_ACTIVITYTIME_ACTIVITY_TYPE') ?>', name: 'activity_type', width: 80},                        
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp}
                    ],
                    buttons: [
                       {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        // {name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                    ],
                    searchitems: false,
                }));
                SG.admin = $.extend(SG.admin, {
                	//add_url: '<?= site_url("activity/activityedit/add") ?>',
                    edit_url: '<?= site_url("activity/activityedit/edit/") ?>',
                });
            });
        </script>       
    </body>
</html>